
import { request } from "../utils/request";
//get请求示例
export function loginSend(params) {
  return request("/sms/login.send", params, "get");
}
//post请求示例
export function smsLogin(data) {
  return request("/skip/account/sms.login", data, "post");
}
// 微信授权登录
export function wxLogin(data) {
  return request("/skip/account/wx.login", data, "post");
}
// 获取用户信息

export function getUserInfo(params) {
  return request("/user/simple/info", params, "get");
}
// 刷新token令牌
export function getRefreshToken(data) {
  return request("/skip/account/refresh.token", data, "post");
}

// 其他地方跳转到小程序的参数换取token
export function getloginTicket(data) {
  return request("/auth/app.login.ticket", data, "post");
}